Method WhereHasDescendant<TTarget>(Expression<Func<TTarget, bool>>, int?)

Assembly: redb.Core.dll

Filter by descendants: find objects that have a descendant of specified type matching condition.
Uses SQL operator $hasDescendant.
Supports polymorphic trees - can search for descendants of different type.

public virtual IRedbQueryable<TProps> WhereHasDescendant<TTarget>(Expression<Func<TTarget, bool>> descendantCondition, int? maxDepth = null) where TTarget : class